﻿using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Abp.Demo.Web
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            try
            {
                await Host.CreateDefaultBuilder(args)
                     .ConfigureWebHostDefaults(builder =>
                     {
                         builder.UseIISIntegration()
                                .UseStartup<Startup>();
                     }).UseAutofac().Build().RunAsync();
            }
            catch(Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
           
        }

    }
}
